#include "newspaper.h"
#include "reader.h"
#include <QApplication>
#include <QDate>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    NewsPaper w;
    w.show();

    NewsPaper newsPaper("NewsPaper a");
    Reader reader;  
    QObject::connect(&newsPaper,
                     static_cast<void (NewsPaper::*)(const QString &, const QDate &)>(&NewsPaper::newPaper),
                     &reader,
                     [=](const QString &name){ } );
    newsPaper.send();


    return a.exec();
}
